package com.mop.core.es.bean;

import com.mop.core.es.api.annotation.ESField;
import com.mop.core.es.api.annotation.IndexName;
import com.mop.core.es.api.bean.BaseESBean;

import java.util.Date;

/**
 * @author lemon
 * @ClassName StudentBean
 * @desc
 * @Date 2019/1/6 16:04
 * @Version 1.0
 **/
@IndexName(index = "lemon_index", type = "student")
public class StudentBean extends BaseESBean {

    @ESField(column = "id")
    private String id;

    private String name;

    private Integer age;

    private Date birth;

    private String major;

    private String school;

    private String context;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }
}
